import sys, locale
print(sys.stdout.encoding)
print(locale.getpreferredencoding(False))